import request from '@/utils/request'

// 根据权限id修改所绑定的前端路由id
export function api_modifyRouteIdByIdPurview(paramsJson) {
  return request({
    url: 'purview-route',
    method: 'patch',
    params: {
      PurviewId: paramsJson.PurviewId,
      RouteId: paramsJson.RouteId,
    },
  })
}
// 根据权限id查询对应的前端路由id
export function api_getRouteIdByIdPurview(idPurview) {
  return request({
    url: 'purview-route',
    method: 'get',
    params: {
      PurviewId: idPurview,
    },
  })
}
